/*
 * @description  :情报 service
 * @descriptionDetail: 情报 service
 * @copyright    : 浙江烟草
 * @author       : dw
 * @create       : 2022-10-09 22:21:21
 */
import apiUrl from "@/common/api_urls/intelligence";
import reqHelper from "@/common/reqHelper";
export default {
  saveHideoutInfo(params){
    return reqHelper.postJson({...params,},apiUrl.manage.saveHideoutInfo);
  },
  denPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.denPage,header);
  },
  deleteByIds(params){
    return reqHelper.postJson({...params,},apiUrl.manage.deleteByIds);
  },
  archiveCaseList(params){
    return reqHelper.postJson({...params,},apiUrl.manage.archiveCaseList);
  },
  // 关联人员
  archiveFamilyList(params){
    return reqHelper.postJson({...params,},apiUrl.manage.archiveFamilyList);
  },
  // 关联车辆
  archiveCarList(params){
    return reqHelper.postJson({...params,},apiUrl.manage.archiveCarList);
  },
  // 关联证件
  archiveLicList(params){
    return reqHelper.postJson({...params,},apiUrl.manage.archiveLicList);
  },
  // 面单情报详情
  billInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.billInfoPage);
  },
  // 面单情报保存
  saveOrUpdate(params){
    return reqHelper.postJson({...params,},apiUrl.manage.saveOrUpdate);
  },
  // 查询快递公司
  queryExpressMap(params){
    return reqHelper.postJson({...params,},apiUrl.manage.queryExpressMap);
  },
  // 物品信息列表
  archiveCaseGoodList(params){
    return reqHelper.postJson({...params,},apiUrl.manage.archiveCaseGoodList);
  },
  savelogisticsInfo(params){
    return reqHelper.postJson({...params,},apiUrl.manage.savelogisticsInfo);
  },
  logisticsPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.logisticsPage,header);
  },
  saveexpressInfo(params){
    return reqHelper.postJson({...params,},apiUrl.manage.saveexpressInfo);
  },
  expressInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.expressInfoPage,header);
  },
  savecarInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.savecarInfoPage);
  },
  carInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.carInfoPage,header);
  },
  savetrainInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.savetrainInfoPage);
  },
  trainInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.trainInfoPage,header);
  },
  saveplaneInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.saveplaneInfoPage);
  },
  planeInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.planeInfoPage,header);
  },
  saveshipInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.saveshipInfoPage);
  },
  shipInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.shipInfoPage,header);
  },
  savepersonInfoPage(params){
    return reqHelper.postJson({...params,},apiUrl.manage.savepersonInfoPage);
  },
  personInfoPage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson({...params,},apiUrl.manage.personInfoPage,header);
  },
  findFilesByBizIdAndGroup(params){
    return reqHelper.get({...params,},apiUrl.manage.findFilesByBizIdAndGroup);
  },
  // 停用启用
  changeActive(params){
    return reqHelper.postJson(params,apiUrl.manage.changeActive);
  },
  // ===========================情报档案删除 start=====================================
  deletehideotInfo(params){
    return reqHelper.postJson([params,],apiUrl.delete.deletehideotInfo);
  },
  deletelogisticsPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deletelogisticsPage);
  },
  deleteexpressInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deleteexpressInfoPage);
  },
  deletecarInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deletecarInfoPage);
  },
  deletetrainInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deletetrainInfoPage);
  },
  deleteplaneInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deleteplaneInfoPage);
  },
  deleteshipInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deleteshipInfoPage);
  },
  deletepersonInfoPage(params){
    return reqHelper.postJson([params,],apiUrl.delete.deletepersonInfoPage);
  },
  // 面单情报删除
  deleteFaceByIds(params){
    return reqHelper.postJson([params,],apiUrl.delete.deleteFaceByIds);
  },
  // ===========================情报档案删除 end=====================================
  // ===========================情报登记 start=====================================
  cluePage(params){
    let header = {
      menuCode:"",
    };
    return reqHelper.postJson(params, apiUrl.clue.cluePage,header);
  },
  saveDoc(params, appendUrl){
    let apendUrl = `?titemUuid=${appendUrl.titemUuid}&docUuid=${appendUrl.docUuid}`;
    return reqHelper.postJson(params, apiUrl.clue.saveDoc + apendUrl);
  },
  /**
   * 提交
   */
  submitDoc(param, apendUrl){
    return reqHelper.postJson(param, apiUrl.clue.submitDoc + apendUrl);
  },
  /**
   * 获取表单内容
   */
  getDoc(param){
    return reqHelper.postForm(param, apiUrl.clue.getDoc);
  },
  /**
   * 删除
   * @param {Object} param
   */
  deleteClueByIds(param){
    return reqHelper.postJson(param, apiUrl.clue.deleteByIds);
  },
  /**
   * 保存线索
   * @param param
   * @returns {*}
   */
  clueTrans(param) {
    return reqHelper.postForm(param,apiUrl.clue.clueTrans);
  },
  /**
   * 获取下级的org列表
   * @param param
   * @returns {*}
   */
  getChildOrg(param) {
    return reqHelper.postForm(param, apiUrl.clue.getChildOrg );
  },
  /**
   * 获取某个单位下面的市管员
   * @returns {*}
   */
  tagOrgMarketManagers(param) {
    return reqHelper.postForm(param,apiUrl.clue.tagOrgMarketManagers);
  },
  /**
   * 反馈
   * @param param
   * @returns {*}
   */
  feedback(param) {
    return reqHelper.postForm(param, apiUrl.clue.feedback);
  },
  /**
   * 调查结果
   * @param param
   * @returns {*}
   */
  investResult(param) {
    return reqHelper.postForm(param,apiUrl.clue.investResult);
  },
  /**
     * 指定调查人
     * @param param
     */
  pointManager(param) {
    return reqHelper.postForm(param,  apiUrl.clue.pointManager);
  },
  // 新情报登记
  clueSaveOrUpdate(param){
    return reqHelper.postJson(param, apiUrl.clue.saveOrUpdate);
  },
  /**
	 * 接收转办
	 * @param param
	 * @returns {*}
	 */
  transferAccept(param) {
    return reqHelper.postJson(param,apiUrl.clue.transferAccept);
  },
  /**
   * 待办接收转办
   * @param param
   * @returns {*}
   */
  getByUuid(param) {
    return reqHelper.postForm(param,apiUrl.clue.getByUuid);
  },
  /**
   * 初始化
   * @param param
   * @returns {*}
   */
  initReport(param) {
    return reqHelper.postForm(param,apiUrl.clue.initReport);
  },
  /**
   * 终止
   * @param param
   * @returns {*}
   */
  stopClue(param) {
    return reqHelper.postForm(param,apiUrl.clue.stopClue);
  },
  /**
   * 举报记录表列表
   * @param param
   * @returns {*}
   */
  clueReportList(param) {
    return reqHelper.postForm(param,apiUrl.clue.clueReportList);
  },
  /**
   * 作废
   * @param param
   * @returns {*}
   */
  clueReportOption(param) {
    return reqHelper.postForm(param,apiUrl.clue.clueReportOption);
  },
  /**
   * 获取反馈信息
   * @param param
   * @returns {*}
   */
  getCludFeedbackInfo(param) {
    return reqHelper.postForm(param, apiUrl.clue.getCludFeedbackInfo);
  },
  /**
   * 获取反馈详情信息
   * @param param
   * @returns {*}
   */
  findById(param) {
    return reqHelper.get(param, apiUrl.clue.findById);
  },
  /**
   * 保存反馈详情信息
   * @param param
   * @returns {*}
   */
  saveCludFeedbackInfo(param) {
    return reqHelper.postJson(param, apiUrl.clue.saveCludFeedbackInfo);
  },


  /**
   * 获取地图面单信息
   */
  findBillMapList(paras) {
    return reqHelper.postJson({ ...paras }, apiUrl.disMap.findBillMapList);
  },

  /**
   * 获取地图案件信息 map/case/findCaseMapList
   */
  findCaseMapList(paras) {
    return reqHelper.postJson({ ...paras }, apiUrl.disMap.findCaseMapList);
  },

  /**
   * 面单打点
   */
  queryLicPositionInfo(paras) {
    return reqHelper.postJson({ ...paras }, apiUrl.disMap.queryLicPositionInfo);
  }

  // licenseinfopre/queryLicPositionInfo
  // ===========================情报登记 end=====================================

}
